using System;
using System.Collections.Generic;
using System.Text;

namespace JBORPG.Server
{
    /// <summary>
    /// Singleton class
    /// </summary>
    public class ServiceLayer
    {
        #region Singleton

        private static ServiceLayer serviceLayer;
        public static ServiceLayer GetInstance()
        {
            return serviceLayer;
        }

        #endregion

        private Database database;
        public Database Database
        {
            get
            {
                return this.database;
            }
        }

        public ServiceLayer()
        {
            ServiceLayer.serviceLayer = this;
            this.database = new Database();
        }

        
    }
}
